﻿using System;
using SLNGP.Core.GeneticPrograms;

namespace SLNGP.Core.SecondaryStrategies
{
    /// <summary>
    /// Uses the .Net Random class in a static instance to provide a random.
    /// </summary>
    public class DefaultRandomProvider : IRandomProvider
    {
        public IGeneticProgram Parent { get; set; }

        private static Random _random = new Random();
        public int Random(int min, int max)
        {
            return _random.Next(min, max+1);
        }
    }
}